package com.xbao.service.impl;

import com.xbao.dao.PeriodMapper;
import com.xbao.model.PeriodRule;
import com.xbao.model.req.PeriodReq;
import com.xbao.service.PeriodSerivce;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by qingshengzheng on 18/8/29.
 */
@Service
public class PeriodServiceImpl  implements PeriodSerivce {
    @Resource
    private PeriodMapper periodMapper;
    @Override
    public void addPeriod(PeriodReq periodReq) {
        periodMapper.addPeriod(periodReq);
    }

    @Override
    public void deletePeriod(Long id) {
        periodMapper.deletePeriod(id);

    }

    @Override
    public void modfiyPeriod(PeriodReq periodReq) {
        periodMapper.modifyPeriod(periodReq);

    }
    @Override
    public PeriodRule detailPeriod(Long id) {
        PeriodRule period=periodMapper.detailPeriod(id);
        return period;
    }

    @Override
    public List<PeriodRule> queryPeriods(PeriodReq periodReq) {
        return null;
    }
}
